package org.example.salesystem.service.impl;

import org.example.salesystem.entity.Report;
import org.example.salesystem.mapper.ReportMapper;
import org.example.salesystem.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

@Service
public class ReportServiceimpl implements ReportService {
    @Autowired
    private ReportMapper reportMapper;
    public boolean submitReport(Report report) {
        if(reportMapper.insertReport(report) > 0)
        {
            return true;
        }
        else
            return false;
    }


}
